/*
 * @Descripttion:
 * @version:
 * @Author: congsir
 * @Date: 2023-06-25 16:11:53
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-01-16 15:03:26
 */
import axios from "axios";
const baseUrlApi = 'https://kk.cx5.top' 
const request = axios.create({
  baseURL: baseUrlApi, 
});

request.interceptors.request.use(
  function (config) {
    return config;
  },
  function (err) {
    return Promise.reject(err);
  }
);


request.interceptors.response.use(
  function (config) {
    return config;
  },
  function (err) {
    return Promise.reject(err);
  }
);

export default (config) => {
  return request(config).then((res) => {
    return res.data;
  });
};

